package demo3;

import demo1.TestProtected;

public class TestDemo extends TestProtected {
    public void test(){
        System.out.println(super.a);
    }

    public static void main(String[] args) {
        TestDemo testDemo = new TestDemo();
        System.out.println(testDemo.a);
        //System.out.println(super.a);main是静态的，不能出现this和super关键字
    }
}
